﻿using System;
using System.ComponentModel;
using System.Linq;

namespace HML
{
    /// <summary>
    /// 主题属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public class SkinPropertyAttribute : Attribute
    {
        #region 属性

        private bool enabled = true;
        /// <summary>
        /// 是否为主题属性
        /// </summary>
        public bool Enabled
        {
            get { return this.enabled; }
        }

        private bool environmentProperty = true;
        /// <summary>
        /// 属性是否为环境属性（环境属性受父属性值影响）
        /// </summary>
        public bool EnvironmentProperty
        {
            get { return this.environmentProperty; }
        }

        #endregion

        public SkinPropertyAttribute(bool enabled, bool environmentProperty)
        {
            this.enabled = enabled;
            this.environmentProperty = environmentProperty;
        }

    }

}
